package com.flx.at.spring.code.apps.config;

import com.flx.at.spring.code.apps.config.imports.MyImportBeanDefinitionRegistrar;
import com.flx.at.spring.code.apps.config.imports.MyImportSelector;
import com.flx.at.spring.code.apps.entity.Person;
import com.flx.at.spring.code.apps.entity.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;

/**
 * @Author: Fenglixiong
 * @Date: 2021/7/3 14:20
 * @Description:
 */
@Configuration
@Import({TeacherConfiguration.class, MyImportSelector.class, MyImportBeanDefinitionRegistrar.class})
//@ImportResource(locations = "classpath:db_user.properties")
public class AppConfiguration extends BaseConfiguration{

    @Bean("abcPerson")
    public Person myPerson(){
        return new Person();
    }

}
